<?php
define('IN_ADMINCP', TRUE);
define('ADMINCP_PATH', dirname(__FILE__));
define('APP_PATH', dirname(ADMINCP_PATH));
require APP_PATH . '/app.php';
$account = new admincp_account;
$logout = $account->logout();
if ( AJAX ){
	jsonp(array(
		'nologin' => 1,
		'data' => render('admin_login_dialog'),
	));
}
redirect('./login.php');